package com.guimin.common.util;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

/**
 * 合作公司要求的配置
 * @author hzy
 */
@Data
@Component
@PropertySource(value = {"${my.config}"},encoding = "UTF-8",ignoreResourceNotFound = true)
@ConfigurationProperties(prefix = "hegui")
public class PartnerConfig {
    /**业务平台编号*/
    @Value("${pno}")
    private String pno;
    /**私钥文件路径*/
    @Value("${privateKeyPath}")
    private String privateKeyPath;
    /**公钥文件路径*/
    @Value("${publicKeyPath}")
    private String publicKeyPath;
    /**支付公司公钥文件路径*/
    @Value("${serverPublicKeyPath}")
    private String serverPublicKeyPath;
    /**密码加密公钥值*/
    @Value("${pwdPublicKeyVlaue}")
    private String pwdPublicKeyVlaue;
    /**版本号*/
    @Value("${version}")
    private Integer version;
    /**公共通知接口*/
    @Value("${notifyUrl}")
    private String notifyUrl;
    /**业务处理接口*/
    @Value("${rmBusinessProcessUrl}")
    private String rmBusinessProcessUrl;
    /**结果查询接口*/
    @Value("${rmResultQueryUrl}")
    private String rmResultQueryUrl;

}
